package com.liuugoqing.structural.decorator;

/**
 * 抽象构建
 *  快餐
 * @Author : liugq
 * @Date : 2022/7/4 16:16
 * @See : 参考类
 * @Since： JDK1.8
 * @Version : 1.0
 */
public abstract class FastFood {
    private float price;
    private String desc;

    public FastFood() {
    }

    public FastFood(float price, String desc) {
        this.price = price;
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    /**
     * 计算总结的抽象方法
     * @return
     */
    public abstract float cost();
}
